home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / jwpsrc.zip / TOOLBAR.H < prev    next >
C/C++ Source or Header  |  1992-01-22  |  1KB  |  31 lines

  1. /* Include file for the TOOLBAR library */
  2. /* Copyright (C) Stephen Chung, 1991.   */
  3. /* All rights reserved.                 */
  4.  
  5. #define MAXSTATES               3
  6.  
  7. #define TOOLBARCLASS            "Toolbar"
  8. #define TOOLBARBUTTONCLASS      "Toolbar Button"
  9.  
  10. typedef struct {
  11.     int id;                     /* Initialize these fields */
  12.     int x, y;
  13.     int width, height;
  14.     int state, cycle;
  15.     char *disabled;
  16.     char *undepressed;
  17.     char *depressed;
  18.     char *grayed;
  19.     char *pressing;
  20.  
  21.     HWND hwnd;                  /* The following fields are only used by */
  22.     int oldstate;               /* the library. DO NOT TOUCH THEM.       */
  23. } TOOLBARICON;
  24.  
  25.  
  26. extern void Create3DEffect (HDC, RECT *, int, int);
  27. extern void EnableToolbarButton (HWND, int, BOOL);
  28. extern void ModifyToolbarButton (HWND, TOOLBARICON *);
  29. extern HWND GetToolbarButton (HWND, int, TOOLBARICON *);
  30. extern HWND CreateToolbar (HWND, int, int, int, int, int, int, int, HANDLE, TOOLBARICON *, char *);
  31.